import 'package:favor_cate/core/model/meal_model.dart';
import 'package:favor_cate/ui/pages/detail/deatil_content.dart';
import 'package:favor_cate/ui/pages/detail/float_action_button.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';



class DetailScreen extends StatelessWidget {
  static final String routeName = "/detail";

  @override
  Widget build(BuildContext context) {
    final MealModel meal = ModalRoute.of(context)!.settings.arguments as MealModel;

    return Scaffold(
      appBar: AppBar(title: Text(meal.title),),
      body: DetailContent(meal),
      floatingActionButton: DetailFloatActionButton(meal)
    );
  }
}
